<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>PersonList</title>
</head>
<body>
<h3>PersonList</h3>
<ul>
    {% for person in persons1 %}
    	<li>name>{{ person.name }}:age>{{ person.age }}</li>
    {% endfor %}
</ul>
<p>person2 = Person.objects.exclude(age__gt=400).exclude(age__lt=800)</p>
<ul>
    {% for person in persons2 %}
    	<li>name>{{ person.name }}:age>{{ person.age }}</li>
    {% endfor %}
</ul>
</body>
</html>